//
//  UIStoryboard+Additions.swift
//  live
//
//  Created by melvyn on 2018/8/17.
//  Copyright © 2018 NEET. All rights reserved.
//

import UIKit


extension UIStoryboard {
    static var `default`: UIStoryboard {
        return UIStoryboard.init(name: "Main", bundle: nil)
    }
}

class DissmissSegue: UIStoryboardSegue {
    override func perform() {
        source.presentingViewController?.dismiss(animated: true, completion: nil)
    }
}

class PopSegue: UIStoryboardSegue {
    override func perform() {
        source.navigationController?.popViewController(animated: true)
    }
}
